package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 生产BOM用料预算明细对象 main_bom_material_pre_detail
 *
 * @author qijian
 * @date 2022-05-17
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_bom_material_pre_detail")
public class BomMaterialPreDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @TableId
    @Excel(name = "表头ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;


    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "表头ID")
    private Long mainId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "物料ID")
    private Long itemId;

    @Excel(name = "物料编码")
    @ApiModelProperty(value = "物料编码")
    private String itemCode;

    @Excel(name = "物料分类")
    @ApiModelProperty(value = "物料分类")
    private String itemClassify;

    @Excel(name = "物料名称")
    @ApiModelProperty(value = "物料名称")

    private String itemName;

    @Excel(name = "物料属性")
    @ApiModelProperty(value = "物料属性")

    private String itemAttr;

    @Excel(name = "物料单位")
    @ApiModelProperty(value = "物料单位")

    private String itemUnit;

    @Excel(name = "物料辅助单位")
    @ApiModelProperty(value = "物料辅助单位")

    private String itemUnitSup;

    @Excel(name = "主数量")
    @ApiModelProperty(value = "主数量")

    private BigDecimal quantity;

    @Excel(name = "辅数量")
    @ApiModelProperty(value = "辅数量")
    private BigDecimal quantitySup;

    @Excel(name = "物料预算单价")
    @ApiModelProperty(value = "物料预算单价")
    private BigDecimal itemPrices;

}
